package com.limy.controller;


import com.limy.api.ResultApi;
import com.limy.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author limy
 * @since 2020-05-26
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService iUserService;

    @RequestMapping("/list")
    public ResultApi list(){
        System.out.println("这是10010");
        return ResultApi.success(iUserService.list());
    }
}

